package com.amado.course43awt;

import java.awt.*;
public class OnTrackTwo extends Frame
{
	Checkbox first ,second;
	CheckboxGroup main= new CheckboxGroup();
	OnTrackTwo(String name)
	{
		super(name);
		Panel pUp = new Panel();
		Panel pUps = new Panel();
		Panel pCenter = new Panel();
		Panel pCenters = new Panel();
		Panel pDown = new Panel();
		Panel pDownCenter = new Panel();
		Panel pUpDown = new Panel();
		setLayout(new BorderLayout());
		add(pUps,BorderLayout.NORTH);
		add(pCenters,BorderLayout.CENTER);
		add(pDown,BorderLayout.SOUTH);
		pUps.setLayout(new BorderLayout());
		pUps.add(new Panel(),BorderLayout.NORTH);
		pUps.add(pUp,BorderLayout.CENTER);
		pUps.add(pUpDown,BorderLayout.SOUTH);
		pUps.add(new Panel(),BorderLayout.EAST);
		pUps.add(new Panel(),BorderLayout.WEST);
		pUp.setLayout(new GridLayout(1,7));
		pUp.add(new Label("OnTarck"));
		pUp.add(new Panel());
		pUp.add(new Label("首页"));
		pUp.add(new Panel());
		pUp.add(new Panel());
		pUp.add(new Label("？帮助"));
		pUp.add(new Label("退出"));
		pUpDown.setLayout(new GridLayout(1,7));
		pUpDown.add(new Panel());
		pUpDown.add(new Panel());
		pUpDown.add(new Label("数据类形"));
		pUpDown.add(new Panel());
		pUpDown.add(new Panel());
		pUpDown.add(new Panel());
		pUpDown.add(new Label("紧急启动盘"));
		
		pCenters.setLayout(new BorderLayout(13,1));
		pCenters.add(new Panel(),BorderLayout.WEST);
		pCenters.add(pCenter,BorderLayout.CENTER);
		pCenter.setLayout(new GridLayout(17,1));
		pCenter.add(new Panel());
		pCenter.add(new Label("Select  one  of the  emergency  boot  media  options  below  and  click  next"));
		pCenter.add(new Panel());
		
		first = new Checkbox("Greate  an  emergency  boot  diskette ",main,false);
		second = new Checkbox("Create  an  emergency  CD-ROM ",main,true);
		pCenter.add(first);
		pCenter.add(new Label("Select  this  option  to  bootable  EasyRecord  diskette"));
		pCenter.add(new Panel());
		pCenter.add(second);
		pCenter.add(new Panel());
		pCenter.add(new Label("Select  this  option  for   instructions   on  creating  a  bootable "));
		pCenter.add(new Label("EasyREcory CD - ROM user  you  system  parents "));
		pCenter.add(new Label("softwds"));

		pDown.setLayout(new BorderLayout());
		pDown.add(new Panel(),BorderLayout.NORTH);
		pDown.add(new Panel(),BorderLayout.SOUTH);
		pDown.add(new Panel(),BorderLayout.EAST);
		pDown.add(new Panel(),BorderLayout.WEST);
		pDown.add(pDownCenter,BorderLayout.CENTER);
		pDownCenter.setLayout(new GridLayout(1,8,15,1));
		
		pDownCenter.add(new Button("帮助"));
		pDownCenter.add(new Panel());
		pDownCenter.add(new Panel());
		pDownCenter.add(new Panel());
		pDownCenter.add(new Panel());
		pDownCenter.add(new Panel());
		pDownCenter.add(new Button("取消"));
		pDownCenter.add(new Button("下一步"));
		
		pCenters.setBackground(Color.WHITE);
		pUp.setBackground(new Color(16,211,31));
		setBounds(140,120,650,500);
		setBackground(Color.gray);
		show();
	}
	public static void main(String[] args) 
	{
		new OnTrackTwo("onTrack2");
	}
}
